﻿<div class="topnav">
	<span class="preload1"></span>
	<span class="preload2"></span>
	<ul id="topnavbar">
		{#foreach $T.table as record}
		{#if $T.record.isnav == 1}
		{#if $T.record.recordcount > 0}
		<li class="topmenu"><a href="{$T.record.url}" target="{$T.record.target}" id="channel{$T.record.id}" class="top_link1"><span>{$T.record.title}</span></a>
			<ul class="sub">
				{#foreach $T.record.table as record2}
				{#if $T.record2.istop == 1}
				{#if $T.record2.recordcount > 0}
				<li><a href="{$T.record2.url}" title='{$T.record2.title}' class="fly">{$T.record2.title}</a>
					<ul>
						{#foreach $T.record2.table as record3}
						{#if $T.record3.istop == 1}
						{#if $T.record3.recordcount > 0}
						<li><a href="{$T.record3.url}" title='{$T.record3.title}' class="fly">{$T.record3.title}</a>
							<ul>
								{#foreach $T.record3.table as record4}
								{#if $T.record4.istop == 1}
								{#if $T.record4.recordcount > 0}
								<li><a href="{$T.record4.url}" title='{$T.record4.title}' class="fly">{$T.record4.title}</a>
									<ul>
										{#foreach $T.record4.table as record5}
										{#if $T.record5.istop == 1}
										<li><a href='{$T.record5.url}' title='{$T.record5.title}'>{$T.record5.title}</a></li>
										{#/if}
										{#/for}
									</ul>

								</li>
								{#else}
								<li><a href="{$T.record4.url}" title='{$T.record4.title}'>{$T.record4.title}</a></li>
								{#/if}
								{#/if}
								{#/for}
							</ul>

						</li>
						{#else}
						<li><a href="{$T.record3.url}" title='{$T.record3.title}'>{$T.record3.title}</a></li>
						{#/if}
						{#/if}
						{#/for}
					</ul>

				</li>
				{#else}
				<li><a href="{$T.record2.url}" title='{$T.record2.title}'>{$T.record2.title}</a></li>
				{#/if}
				{#/if}
				{#/for}
			</ul>
		</li>
		{#else}
		<li class="topmenu"><a href="{$T.record.url}" target="{$T.record.target}" id="channel{$T.record.id}" class="top_link0"><span>{$T.record.title}</span></a>
		</li>
		{#/if}
		{#/if}
		{#/for}	
	</ul>
</div>
